package com.liuyi.framework.web.encrypt;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class CryptoConfig {

    @Bean
    @ConditionalOnMissingBean
    public CryptoFilter liuyiCryptoFilter() {
        return new CryptoFilter() {
            @Override
            public String getHeaderName() {
                return null;
            }

            @Override
            public boolean check(String headerValue) {
                return false;
            }
        };
    }
}
